package week2;

import java.util.Scanner;

public class PP0208{
  public static void main(String[] args){
    int hour,min,sec,s;
    
    Scanner t = new Scanner(System.in);
    
    System.out.print("小时:");
    hour = t.nextInt();
    
    
    System.out.print("分钟:");
    min = t.nextInt();
    
    System.out.print("秒:");
    sec = t.nextInt();

    s = hour*3600 + min*60 + sec;
    System.out.println(hour+" hour "+min+" min "+sec+" sec "+"等于"+s+" sec.");
  }
}
